package com.lxz.bookmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lxz.bookmanager.entity.Borrow;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 借阅申请
 */
@Repository
@Mapper
public interface BorrowMapper extends BaseMapper<Borrow> {
    //申请图书借阅   ---reader使用
    void applyBorrowBook(Borrow borrow);

    void applyBorrowBooks(Long bookid,String bookname,String borrowusername, int borrowreaderid);

    //查询申请借阅信息  ----管理员使用
    List<Borrow> getAllBorrow();
    //同意借阅     ----管理员使用

}
